#include "callback.h"
#include "TCPConnection.h"
#include "log/Logger.h"

void Callback::default_connection(const TCPConnectionPtr &connection) {
    LOG_VERBOSE << connection->local().IP_port() << "-"
                << connection->peer().IP_port() << " is "
                << (connection->is_connected() ? "UP" : "DOWN");
}

void Callback::default_message(
    const TCPConnectionPtr & /*connection*/, Buffer &buffer, Utility::timepoint /*t*/) {
    buffer.retrieve();
}